<@pp.dropOutputFile />
<#list dalgen.dos as DO>
<@pp.changeOutputFile name = "/main/java/${DO.classPath}/${DO.className}.java" />
package ${DO.packageName};

<#list DO.importLists as import>
import ${import};
</#list>

/**
 *  ${DO.desc}
 */
public class ${DO.className} extends IdEntity {

    <#list DO.fieldses as fields>
	<#if fields.name != "id" && fields.name != "createdDate" && fields.name != "createdBy" && fields.name != "updatedDate" && fields.name != "updatedBy" && fields.name != "deleteFlag">
	/**
	* ${fields.desc}.
	*/
	private ${fields.javaType} ${fields.name};
	</#if>
    </#list>
    
    <#list DO.fieldses as fields>
	<#if fields.name != "id" && fields.name != "createdDate" && fields.name != "createdBy" && fields.name != "updatedDate" && fields.name != "updatedBy" && fields.name != "deleteFlag">
    /**
     * ${fields.desc}.
     */
    public void set${fields.name?cap_first}(${fields.javaType} ${fields.name}){
    	<#if fields.javaType = "String" >
        this.${fields.name} = ${fields.name} == null ? null:${fields.name}.trim();
        <#else>
        this.${fields.name} = ${fields.name};
        </#if>
    }

    /**
     * Get ${fields.name} ${fields.desc}.
     *
     * @return the string
     */
    public ${fields.javaType} get${fields.name?cap_first}(){
        return ${fields.name};
    }
    </#if>
    </#list>
    
    @Override
	public String toString() {
		return "${DO.className} ["
				<#list DO.fieldses as fields>
				<#if fields.name != "id" && fields.name != "createdDate" && fields.name != "createdBy" && fields.name != "updatedDate" && fields.name != "updatedBy" && fields.name != "deleteFlag">
				+ " ${fields.name} =" + ${fields.name} + ", "
				</#if>
				</#list>
				+" id=" + id + ","
				+" createdDate=" + createdDate + ","
				+" createdBy=" + createdBy + "," 
				+" updatedDate=" + updatedDate + "," 
				+" updatedBy=" + updatedBy + "," 
				+" deleteFlag=" + deleteFlag + "]";
	}
}
</#list>